#!/bin/bash

[[ -f /etc/default/docker ]] || {
	sed -i '/^DOCKER_OPTS=/d' /etc/default/docker
}

cat >> /etc/default/docker <<EOF
DOCKER_OPTS="--dns 114.114.114.114"
EOF

systemctl restart docker
